package com.xyz.rok.tools.service;

import com.xyz.rok.tools.model.ApplyTitle;
import com.xyz.rok.tools.model.Title;import com.xyz.rok.tools.model.Union;
import com.xyz.rok.tools.model.request.TitleRequest;
import com.xyz.rok.tools.model.request.UnionRequest;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TitleService {

    void applyTile(TitleRequest titleRequest) throws Exception;

    ApplyTitle selectByUserId(Long userId);

    List<ApplyTitle> selectByServerId(Integer serverId);

    void checkingTitle(TitleRequest titleRequest) throws Exception;

    int updateGetTitleTime(Long id) throws Exception;

    void checkingTitleAdmin(TitleRequest titleRequest) throws Exception;

    int deleteByPrimaryKey(Integer id);

    int insert(Title record);

    int insertSelective(Title record);

    Title selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Title record);

    int updateByPrimaryKey(Title record);

    Title selectBySerialNumber(String serialNumber);

    Title selectTitleByServerId(Integer serverId);

    void updateTitleByServerId(Title record);

    ApplyTitle getFirstTitle(Integer title, Integer serverId);

    int getCountByServerId(Integer serverId);
}

